﻿{% extends "base.html" %}

{%block doc_js%}


$(document).ready(function() {
    if("{{user.key}}"=="{{current_user.key}}"){
        $("#nav_mypage").addClass("current");
    }else{
        $("#nav").append("<a href='/user/{{user.key.id}}' class='current'> {{user.nickname}} 分享的所有图片</a>");
    }
    
    //setClickable(); 
    
    $('#edit_user_name').editable('/rpc/', {
            name    : 'new_user_name', 
            type      : 'charcounter',
            cancel    : '取消',
            submit    : '保存',
            indicator : '正在保存...',
            tooltip   : '单击修改...',
            height: '20px',
            width: '170px',
            style : "display: inline;",
          charcounter : {
             characters : 10
          }
     
     });


})

{%endblock%}

{%block sub_nav%}
{%endblock%}

{%block foot_nav%}
{%endblock%}

{% block content %}
<div class="info">
<p>ID:{{user.key.id}}</p>
<p>昵称: <b id="edit_user_name" class="editable">{{user.nickname}}</b> (单击修改)</p>
<p>分享的图片:</p>
</div>
            <div class="yui-g rounded">
               {% if entries %}
          {% for entry in entries %}
      	        <div class="image_holder_small">
      	        <a href="/entry/{{ entry.key.id }}" title="">
                  <img class="image"  src="/image/{{ entry.image.key.id }}?w=200&h=150"/>
                </a>
                </div>
          {% endfor %}
        {% endif %}
            </div>

<span></span>
{% endblock %}
